projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be70315
)
Fix backward search bug exposed by the unit test
author
Paolo Borelli
<pborelli@gnome.org>
Sun, 31 Oct 2010 12:52:06 +0000
(13:52 +0100)
committer
Paolo Borelli
<pborelli@gnome.org>
Mon, 1 Nov 2010 14:21:43 +0000
(15:21 +0100)
When searching with multiple lines first_line_start/end were initialized
to the last line start/end iters
gtk/gtktextiter.c
patch
|
blob
|
history
diff --git
a/gtk/gtktextiter.c
b/gtk/gtktextiter.c
index 13a4e370b7aa39b878f4f56a7b184deeca5eb59a..380778f90c8e4e483541e14b510b8dac58e9afb4 100644
(file)
--- a/
gtk/gtktextiter.c
+++ b/
gtk/gtktextiter.c
@@
-4803,6
+4803,8
@@
lines_window_init (LinesWindow *win,
}
win->lines[i] = line_text;
+ win->first_line_start = line_start;
+ win->first_line_end = line_end;
line_end = line_start;
gtk_text_iter_backward_line (&line_start);